home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Tele / C / CommsService 2.0.2.sit / commsService 2.0.2 Final / Service Definition Files / Generalised Serial Service < prev    next >
Encoding:
Text File  |  1994-09-06  |  1.5 KB  |  33 lines  |  [TEXT/cSSv]

  1. #
  2. # commsService 2.0 Service Definition File.
  3. #
  4. Name=Generalised Serial Service
  5. Description=A generalised serial line access service.
  6. This service contains an example notify string that recognises the typical unix "^H" response to an incorrect backspace key and automatically toggles the key to the delete key.
  7.  
  8. TimeOut=10
  9. BreakEnabled=Yes
  10. PagesToScroll=50
  11. NotifyString=\^H
  12. TerminationString=^D
  13. ConnectionTool=Serial Tool
  14. ConnectionTokens=Baud 19200 DataBits 8 Parity None StopBits 1 Port "Modem Port" Handshake XON/XOFF HoldConnection False RemindDisconnect False
  15. ConnectionMenu=No
  16. TerminalTool=VT102 Tool
  17. TerminalTokens=FontSize 12 Width 80 Cursor Underline Online True LocalEcho False AutoRepeat True RepeatControls False AutoWrap False NewLine False Scroll Jump ShowControls False SwapBackspaceDelete False TerminalMode ANSI/VT102 ShowStatusBar False ShowTabRuler False InverseVideo False InsertChar False OriginAtMargin False KeyClick False CursorKey ANSI Keypad Numeric AnswerBack "" KeyboardLocked False ActiveCharSet G0 NRCSet USASCII G0 USASCII G1 USASCII G2 USASCII G3 USASCII
  18. TerminalMenu=No
  19. ServiceScripts=on NotifyStringDetected
  20. global ActiveService, NotifyStringFound
  21. --
  22. -- This handler is called whenever one of the 'Notify' strings are detected in
  23. -- the service output. When the handler is executed the global 'ActiveService'
  24. -- will contain the name of the service and 'NotifyStringFound' will contain the
  25. -- string detected.
  26. --
  27. if NotifyStringFound = "\^H" then
  28. send togglebackspace to window activeservice
  29. end if
  30. return true
  31. end NotifyStringDetected
  32.  
  33.